﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%namespace YouHP.Atom%>
<%namespace YouHP.Logic%>
<%template _header%>
<script type="text/javascript" src="/support/swfobject/open-flash-chart.js"></script>

<div class="layout-cols2">
	
<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
	     <%template _memrecordermenu%>
	     	
			<div class="pannelbody">
	    
	    <div class="box">
	        <div class="caption">
	            治疗图表
	        </div>
	        <div class="content" style="text-align:center;margin:0 auto">
                <div id="Treatmentchart1"></div>
                <script type="text/javascript">
                    var prescriptionId=getURLParam("prescriptionid");
                    var g_sTreatmentUrl="/Pages/Alpha/TreatmentHistory/TreatmentHistory.aspx?pretype=1&trmid="+prescriptionId;
                    swfobject.embedSWF("/support/swfchart/open-flash-chart.swf", "Treatmentchart1", "740", "250","9.0.0", "expressInstall.swf",{'id':'1','flashready':'OnTreatmentFlashReady'},{wmode: "transparent"});
                </script>
                <script type="text/javascript" src="/support/swfobject/Treatment.js"></script>
            </div>
	    </div>
	    
	    <div class="box">
	        <div class="caption">
	            治疗信息
	        </div>
	        <div class="content">
	         <%csharp%>  TempUrl = "/TreatmentHistory/Index.aspx";<%/csharp%>

	           <p style="margin-bottom:10px; margin-top:10px;"> <b>{presData.Name}</b>&nbsp;&nbsp;<a href="{this.GetUrl(TempUrl)}"><font color="blue">返回继续添加治疗</font></a></p>
	            <p style="margin-bottom:10px;">
	            
                <table>

	            </table>
	            
	            </p>
	            <br />

	            <table class="tbl-data">
	                <col style="width:15%; text-align:center" />
	                <col style="width:15%;" />
	                <col style="width:20%;" />
	                <col style="width:30%;" />
	                <col style="width:20%; text-align:center" />
	                <thead><tr>
	                    <th>日期</th>
	                    <th>记录</th>
	                    <th>使用目的/停止原因</th>
	                    <th></th>
	                </tr></thead>
	                <tbody>
	                    <%csharp%>
	                    foreach(PrescriptionHistoryInfo item in PrescriptionHistoryList)
	                    {
	                    <%/csharp%>
	                    <tr>
	                        <td>
	                        	<%csharp%> if(item.State == Constants.START_USE) {<%/csharp%>
	                                {item.StartDate.ToString("yyyy-MM-dd")} 
	                            <%csharp%> } else if(item.State == Constants.STOPED_USE) {<%/csharp%>
	                               {item.StartDate.ToString("yyyy-MM-dd")} 	                            
	                            <%csharp%>}<%/csharp%>
	                        
	                        </td>
	                        <td>
	                            <%csharp%> if(item.State == Constants.START_USE) {<%/csharp%>
	                                开始使用
	                            <%csharp%> } else if(item.State == Constants.STOPED_USE) {<%/csharp%>
	                                停止使用	                            
	                            <%csharp%>} else  if(item.State == Constants.CHANGE_DOSAGE) {<%/csharp%>
	                                改变剂量
	                            <%csharp%>}<%/csharp%>
	                        </td>
	                        
	                         <td>   
	                            <%csharp%> if(item.State == Constants.CURRENT_USING  || item.State == Constants.CHANGE_DOSAGE) {<%/csharp%>
	                                {Constants.GetTreatmentPurpose(item.UsePurpose)}
	                            <%csharp%>} else  if(item.State == Constants.STOPED_USE) {<%/csharp%>
	                                {Constants.GetStopReason(item.StopReason)}
	                            <%csharp%>}<%/csharp%>		                        
	                        </td>   
	                                          
	                        <td>
	                        <!--
                                <%csharp%>     
	                                TempUrl = "/TreatmentHistory/HistoryEdit.aspx?id=" + item.Id; 
	                            <%/csharp%>
	                                
	                                    <a href="{this.GetUrl(TempUrl)}" class="selectall">修改</a>
                                               
	                            <%csharp%>
	                                TempUrl = "/TreatmentHistory/HistoryDel.aspx?id=" + item.Id;
	                            <%/csharp%>
	                                
	                                    <a href="{this.GetUrl(TempUrl)}" class="selectall" onclick='return confirm("确定要删除吗?")'>删除</a>
	                        -->            
                                   
	                        </td>
	                    </tr>
	                    <%csharp%> } <%/csharp%>
	                </tbody>
	            </table>
	            <br />
	            <div class="pages">
					{PagingString}
				</div>
				
	            <table>
	                <tr>
	                    <td>
	                        <!--
	                        <%csharp%> TempUrl = "/TreatmentHistory/HistoryStart.aspx?trmid=" + presData.Id; <%/csharp%>
	                        提示：您也可以通过操作 <a href="{this.GetUrl(TempUrl)}"><font color="blue">开始使用</font></a> 和 
	                        <%csharp%> TempUrl = "/TreatmentHistory/HistoryStop.aspx?trmid=" + presData.Id; <%/csharp%>
	                        <a href="{this.GetUrl(TempUrl)}"><font color="blue">停止使用</font></a> 来添加更多的历史治疗记录！
	                        -->
	                    </td>
	                </tr>
	            </table>
	             <br />
	             				
	            <p>
	                <%csharp%>
	                      TempUrl = "/TreatmentHistory/HistoryAdd.aspx?trmid={presData.Id}"; 
	                <%/csharp%>
	                <!--
	                <span class="btn-min">
	                    <a href="{this.GetUrl(TempUrl)}">填写治疗信息</a>
                    </span>-->
	            </p>
	            <br /><br />
	           
	        </div>
	    </div>
	</div>
</div>
</div>
</div>	

	
</div>

<%template _footer%>